import request from '@/utils/request';
import qs from 'qs'
export const submitApply = (data) => {
    return request.post('/api/doorplateApply', data);
}

export const getApplyList = (params) => {
    return request.get('/api/doorplateApply', {
        params,
        paramsSerializer: p => qs.stringify(p, { arrayFormat: 'repeat' })
    })
}

export const submitApproval = (id, data) => {
    return request.put(`/api/doorplateApply/${id}/approval`, data);
}